package com.wengzw.service;

import com.wengzw.dao.UploadMapper;
import com.wengzw.po.Upload;
import com.wengzw.vo.UploadVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class UploadServiceImpl implements UploadService{
    @Resource
    private UploadMapper uploadMapper;

    public int addFile(Upload upload) {
        return uploadMapper.addFile(upload);
    }

    public List<Upload> findfileList(UploadVo uploadVo) {
        return uploadMapper.findfileList(uploadVo);
    }

    public int updatefile(Upload upload) {
        return uploadMapper.updatefile(upload);
    }

    public int deletefile(Integer id) {
        return uploadMapper.deletefile(id);
    }

}
